From: Benjamin Otte Date: Tue, 5 Oct 2021 02:14:57 +0000 (+0200) Subject: build: Add a HAVE_EGL define to config.h X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~258^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ae8de7168ad9ff86b51939d873ff475d77091f30;p=gtk4.git build: Add a HAVE_EGL define to config.h --- diff --git a/gdk/win32/meson.build b/gdk/win32/meson.build index 93c55fa6d8..0177adaf83 100644 --- a/gdk/win32/meson.build +++ b/gdk/win32/meson.build @@ -48,7 +48,7 @@ install_headers(gdk_win32_public_headers, 'gdkwin32.h', subdir: 'gtk-4.0/gdk/win GDK_WIN32_EGL_CFLAGS = [] -if win32_has_egl +if have_egl GDK_WIN32_EGL_CFLAGS = ['-DGDK_WIN32_ENABLE_EGL'] gdk_win32_sources += ['gdkglcontext-win32-egl.c'] endif diff --git a/meson.build b/meson.build index bea2015429..897de13766 100644 --- a/meson.build +++ b/meson.build @@ -481,7 +481,15 @@ if not cairo_csi_dep.found() cairo_csi_dep = cc.find_library('cairo-script-interpreter', required: get_option('build-tests')) endif +have_egl = epoxy_dep.get_variable( + pkgconfig: 'epoxy_has_egl', + internal: 'epoxy_has_egl', + default_value: '0') == '1' + cdata.set('HAVE_CAIRO_SCRIPT_INTERPRETER', cairo_csi_dep.found()) +if have_egl + cdata.set('HAVE_EGL', 1) +endif cdata.set('HAVE_HARFBUZZ', harfbuzz_dep.found()) cdata.set('HAVE_PANGOFT', pangoft_dep.found()) @@ -589,10 +597,6 @@ if win32_enabled pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32'] # Check whether libepoxy is built with EGL support on Windows - win32_has_egl = epoxy_dep.get_variable( - pkgconfig: 'epoxy_has_egl', - internal: 'epoxy_has_egl', - default_value: '0') == '1' endif # Check for bind_textdomain_codeset, including -lintl if GLib brings it in by